package com.cxz.study.ddd_project.domain.biz.impl;

import com.cxz.study.ddd_project.domain.biz.model.base.WhSerialNoRecordBO;
import com.cxz.study.ddd_project.domain.biz.service.WhSerialNoRecordBizService;
import com.cxz.study.ddd_project.domain.biz.util.BeanConvert;
import com.cxz.study.ddd_project.infrastructure.model.dto.base.WhSerialNoRecordDTO;
import com.cxz.study.ddd_project.infrastructure.model.entity.base.WhSerialNoRecordDO;
import com.cxz.study.ddd_project.infrastructure.service.base.WhSerialNoRecordService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className: WhSerialNoRecordBizServiceImpl
 * @author: ocxz1
 * @date: 2024/12/29 下午9:30
 * @Version: 1.0
 * @description: ddd_project1
 */
@Service
public class WhSerialNoRecordBizServiceImpl implements WhSerialNoRecordBizService {

    @Resource
    private WhSerialNoRecordService whSerialNoRecordService;

    /**
     * 列表查询
     * @param bo 查询bo
     * @return 查询到的列表信息
     */
    @Override
    public List<WhSerialNoRecordBO> findList(WhSerialNoRecordBO bo) {

         WhSerialNoRecordDTO dto = BeanConvert.convertToWhSerialNoRecordDTO(bo);
        List<WhSerialNoRecordDO> list = whSerialNoRecordService.findList(dto);

        return BeanConvert.convertToWhSerialNoRecordBOList(list);
    }
}
